<?php
class ProprieteInfo{
	private $id;
	private $label;
	private $tooltip;
	private $propriete_id;
	private $Langue;
	function __construct($id) {

		if (is_int($id)){
			if($id >= 0){
				$this->id=$id;
			}else{
				throw new FieldFormatException($_SESSION['translator']->idVal);
			}
		}else{
			throw new FieldFormatException($_SESSION['translator']->idInt);
		}
	}
	function getId(){
		return $this->id;
	}
	function getLabel(){
		return $this->label;
	}
	function getTooltip(){
		return $this->tooltip;
	}
	function getProprieteId(){
		return $this->propriete_id;
	}
	function getLangue(){
		return $this->langue;
	}
	function setLabel($label){
		$this->label = $label;
	}
	function setTooltip($tooltip){
		$this->tooltip = $tooltip;
	}
	function setLangue($Langue) {
		if (is_a($Langue,'Langue')){
			$this->langue = $Langue;
		}else{
			throw new FieldFormatException($_SESSION['translator']->reqInstance." Langue");
		}
	}
	function setProprieteId($ProprieteId) {
		if (is_int($ProprieteId)){
			$this->propriete_id = $ProprieteId;
		}else{
			throw new FieldFormatException($_SESSION['translator']->idInt);
		}
	}
}